import get_params from '@dfeidao/atom-nodejs/authorization/get-params';
import { IFeidaoAiNodejsComponent } from '@dfeidao/atom-nodejs/interfaces';
import whoami from '@dfeidao/atom-nodejs/msg/whoami';
import render from '@dfeidao/atom-nodejs/render/render';
import p004 from './p004';
export default async function na001(fd: IFeidaoAiNodejsComponent) {
	// todo
	const user = await whoami(fd.data.actionid, fd.data.sessionid);
	// console.log('user', user);
	const admin = await get_params(fd.data.msg, fd.data.headers, user.productid, '3');
	// console.log(admin);
	render(fd.data.node, JSON.stringify(admin), p004, 'p004');
}
